package controllers;

import java.awt.event.ActionEvent;
import system.View;

public class DisplayTableController extends AbstractMenuController
{	
	public DisplayTableController(View v) { super(v); }

	@Override
	public void actionPerformed(ActionEvent e) {	
		String actionCommand = e.getActionCommand();
		
		if (actionCommand.equals("Display Items"))
			item.show();
		else if (actionCommand.equals("Display Lead Singers/Products"))
			lead_singer.show();
		else if (actionCommand.equals("Display Songs/Products"))
			has_song.show();
		else if (actionCommand.equals("Display Suppliers"))
			supplier.show();
		else if (actionCommand.equals("Display Shipments"))
			shipment.show();
		else if (actionCommand.equals("Display Items in Shipments"))
			ship_item.show();
		else if (actionCommand.equals("Display Stores"))
			store.show();
		else if (actionCommand.equals("Display Items in Stores"))
			stored.show();
		else if (actionCommand.equals("Display Purchases"))
			purchase.show();
		else if (actionCommand.equals("Display Purchased Items"))
			purchased_item.show();
		else if (actionCommand.equals("Display Customers"))
			customer.show();
		else if (actionCommand.equals("Display Returns"))
			return_transaction.show();
		else if (actionCommand.equals("Display Returned Items")) 
			return_item.show();
	}

	@Override
	public void show() {
		// TODO Auto-generated method stub
		
	}
}
